package com.lanmaoly.cunzheng.threadpoolfour;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class TaskExecutePool2 {

    public Executor synchronousQueuePool() {
        ThreadPoolExecutor executor =
                new ThreadPoolExecutor(3, 3, 1L, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(4));
        return executor;
    }

}
